import * as React from "react";

import useForm from "./useForm";
import Field from "./Field";
import FieldForm from "./Form";

// const InternalForm = React.forwardRef(FieldForm);

// type InternalFormType = typeof InternalForm;
// interface RefFormType extends InternalFormType {
//   Field: typeof Field;
//   useForm: typeof useForm;
// }

// const RefForm = InternalForm as RefFormType;

// // From.Item
// RefForm.Field = Field;
// RefForm.useForm = useForm;

// export default RefForm;

(FieldForm as any).Item = Field;
(FieldForm as any).useForm = useForm;

export default FieldForm;

export { Field };
